package com.cet.spring_batch_study.jobs.xmlReader;

import com.cet.spring_batch_study.jobs.fileRead.Player;
import org.springframework.batch.item.Chunk;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

/**
 * @author NSOC
 */
@Component
public class DisplayTradeWriter implements ItemWriter<Trade> {
    @Override
    public void write(Chunk<? extends Trade> chunk) throws Exception {
        for (Trade item : chunk.getItems()) {
            System.out.println(item);
        }
    }
}
